// 本文件由自动工具 proto.py 自动生成，请勿修改
// filename msg1200_csbuf.ts
// package ptl


// message ChatMessage
export class ChatMessage {
	protoid: number = 1200;
	playerId: string = "";
	msgId: number = 0;
	type: number = 0;
	msg: string = "";


Marshal(writer: any) {
	writer.setString(this.playerId, 1)
	writer.setUint32(this.msgId, 2)
	writer.setUint8(this.type, 3)
	writer.setString(this.msg, 4)
}

Unmarshal(reader: any) {
	this.playerId = reader.getString(1)
	this.msgId = reader.getUint32(2)
	this.type = reader.getUint8(3)
	this.msg = reader.getString(4)
}
}

// message ChatMessageRecved
export class ChatMessageRecved {
	protoid: number = 1202;
	msgId: number = 0;


Marshal(writer: any) {
	writer.setUint32(this.msgId, 1)
}

Unmarshal(reader: any) {
	this.msgId = reader.getUint32(1)
}
}

